package service.impl;

import hibernate.PageInfo;
import hibernate.dao.BaseDAOI;

import java.util.List;

import service.BaseServiceI;

public class BaseService implements BaseServiceI {

	public BaseDAOI baseDAO;
	
	public void delete(Object obj) {
		baseDAO.delete(obj);
	}

	public List<Object> findAll(String queryString) {
		return baseDAO.findAll(queryString);
	}

	public PageInfo findAll(String queryString, int pageNo, int pageCount) {
		return baseDAO.findAll(queryString, pageNo, pageCount);
	}

	public List<Object> findByComplex(String clazz, String[] property,
			Object[] value) {
		return baseDAO.findByComplex(clazz, property, value);
	}

	public List<Object> findByExample(Object obj) {
		return baseDAO.findByExample(obj);
	}

	public Object findByID(String clazz, Long id) {
		return baseDAO.findByID(clazz, id);
	}

	public List<Object> findByProperty(String clazz, String property,
			Object provalue) {
		return baseDAO.findByProperty(clazz, property, provalue);
	}

	public int getCount(String queryString) {
		return baseDAO.getCount(queryString);
	}

	public Object merge(Object obj) {
		return baseDAO.merge(obj);
	}

	public void save(Object obj) {
		 baseDAO.save(obj);
		
	}

	public void update(Object obj) {
		baseDAO.update(obj);
		
	}

	public void uporsave(Object obj) {
		baseDAO.uporsave(obj);
		
	}

	public BaseDAOI getBaseDAO() {
		return baseDAO;
	}

	public void setBaseDAO(BaseDAOI baseDAO) {
		this.baseDAO = baseDAO;
	}

	
}
